﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace _6___ExtraxtEmail
{
    class Program
    {
        static void ExtractEmails(string input)
        {
            string pattern = @"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";
            Console.WriteLine("{0}", Regex.Match(input, pattern));
        }

        static void Main(string[] args)
        {
            string text = "There is something wrong about linkoln_park@abv.bg, I'm telling you";
            ExtractEmails(text);
        }
    }
}
